body {
    background: url('../assets/images/Dirt_background_JE2.png');
    font-family: 'Minecraft', monospace;
    color: #e0e0e0;
    margin: 0;
    padding: 0;
}

.chooser {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: none;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.title {
    width: 100%;
    text-align: center;
    font-size: 20px;
    color: #fff;
    margin-top: 30px;
    margin-bottom: 12px;
    letter-spacing: 2px;
}

.device-list {
    width: 100%;
    height: 64%;
    background: rgba(0, 0, 0, 0.45);
    margin-bottom: 18px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    position: relative;
    box-sizing: border-box;
    padding: 0;
}

.gap {
    height: 10px;
}

.device-row {
    display: flex;
    align-items: center;
    height: 64px;
    width: 80%;
    margin: 0 auto;
    /* 水平居中 */
}

.device-icon {
    width: 64px;
    height: 64px;
    background: url('../assets/images/device_icon.png') no-repeat center/cover, #222;
    border: 1px solid #555;
    margin-right: 12px;
}

.device-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 220px;
}

.device-name {
    color: #fff;
    font-size: 18px;
    text-shadow: 1px 1px 0 #000;
    margin-bottom: 2px;
}

.device-desc {
    color: #bcbcbc;
    font-size: 14px;
    text-shadow: 1px 1px 0 #000;
}

.device-status {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-right: 24px;
}
.device-ping {
    display: inline-block;
    width: 24px;
    height: 16px;
    background: url('../assets/images/ping_full.png') no-repeat center/contain;
}

.searching {
    width: 100%;
    text-align: center;
    color: #ffffff80;
    font-size: 18px;
    margin-top: 8px;
    text-shadow: 1px 1px 0 #000;
}

.dots {
    letter-spacing: 2px;
    font-size: 22px;
    color: #ffffff80;
    text-shadow: 1px 1px 0 #000;
}

.menu-row {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 12px;
    margin-top: 18px;
}

.menu-row:last-of-type {
    margin-top: 8px;
}

.btn {
    min-width: 200px;
    height: 40px;
    background: url('../assets/images/button.jpg') no-repeat center/cover;
    border: 2px solid #222;
    color: #fff;
    font-family: 'Minecraft', monospace;
    font-size: 16px;
    text-align: center;
    cursor: pointer;
    box-shadow: 1px 1px 0 #000;
    outline: none;
    transition: background 0.1s, border 0.1s;
    margin: 0;
    padding: 0 12px;
    border-radius: 2px;
    position: relative;
    /*TODO: 三段式背景,不然上下有黑边*/
}

.btn:hover {
    background-image: url('../assets/images/button_onmouseover.png');
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    border: 2px solid rgb(196, 196, 196);
    color: #fff;
}

.btn:active {
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.btn-disabled {
    min-width: 200px;
    height: 40px;
    background: #222;
    color: #888;
    border-color: #444;
    cursor: not-allowed;
}

.btn-disabled:hover {
    background: #222;
    color: #888;
    border-color: #444;
    cursor: not-allowed;
}



@font-face {
    font-family: 'Minecraft';
    src: url('../assets/fonts/Mojangles.ttf') format('truetype');
}